import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'amfe-flexible'
Vue.config.productionTip = false


// 注册的全局组件
import goods from '@/components/Goods.vue'
import load from '@/components/load.vue'
import title1 from '@/components/title1.vue'
import swiper from '@/components/swiper.vue'
import whatever from '@/components/whatever.vue'
Vue.config.productionTip = false
Vue.component('goods', goods)
Vue.component('load', load)
Vue.component('titleA', title1)
Vue.component('swiper', swiper)
Vue.component('whatever', whatever)

// router.afterEach((to,from,next) => {
//   window.scrollTo(0,0);
// })
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
